home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / unixt~3h / unixtkit.arc / man.arc / GREP.MAN < prev    next >
Text File  |  1988-03-28  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.         GREP                  ST-UNIX User's Manual                  GREP
  5.  
  6.  
  7.  
  8.         COMMAND
  9.              grep search for a string in a file
  10.  
  11.         FORMAT
  12.              grep [ option ] ...  string [ file ] ...
  13.  
  14.         DESCRIPTION
  15.              The file(s) are searched for lines containg _✓s_✓t_✓r_✓i_✓n_✓g.  If  the
  16.              match  is successful the lines are printed. If more than one
  17.              file is to be searched the matched line is preceeded by  the
  18.              filename.
  19.  
  20.         OPTIONS
  21.              -v   Only lines not containing string are displayed.
  22.  
  23.              -x   Only lines having a complete match are displayed.
  24.  
  25.              -c   A count of matching line is displayed.
  26.  
  27.              -l   The names of the files containing the matched lines are
  28.                   displayed.
  29.  
  30.              -n   A line number of the matched line is displayed preceed-
  31.                   ing the line.
  32.  
  33.              -i   The case of letters in the string and file are  ignored
  34.                   in the match.
  35.  
  36.              -s   Silent mode. Nothing is printed, only the error  status
  37.                   is returned.
  38.  
  39.         EXAMPLE
  40.              To look for the string 'abc' in 'afile':
  41.  
  42.                   grep abc afile
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.         Printed 10/April/1987    1st April 1987                         1
  64.  
  65.  
  66.  
  67.